package cn.wetcland.pojo;


import java.util.Arrays;
import java.util.Date;

public class GlobalMarket {

    private int id;
    private int ownerId;
    private double price;
    private Date startTime;
    private Date endTime;
    private byte[] itemByte;
    private String itemName;
    private String ownerName;
    private String nbt;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(int ownerId) {
        this.ownerId = ownerId;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public byte[] getItemByte() {
        return itemByte;
    }

    public void setItemByte(byte[] itemByte) {
        this.itemByte = itemByte;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getNbt() {
        return nbt;
    }

    public void setNbt(String nbt) {
        this.nbt = nbt;
    }

    @Override
    public String toString() {
        return "GlobalMarket{" +
                "id=" + id +
                ", ownerId=" + ownerId +
                ", price=" + price +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", itemByte=" + Arrays.toString(itemByte) +
                ", itemName='" + itemName + '\'' +
                ", ownerName='" + ownerName + '\'' +
                ", nbt='" + nbt + '\'' +
                '}';
    }
}
